﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class TextAsButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
	public Text buttonText;
	public Color highlightedColor;
	public Color normalColor;
/*	
	void Start()
	{
		buttonText.color = normalColor;
	}
*/
	public void OnPointerEnter(PointerEventData eventData)
	{
		buttonText.color = highlightedColor;
	}

	public void OnPointerExit(PointerEventData eventData)
	{
		buttonText.color = normalColor;
	}
}
